#include "wav_head.h"
#include "stdio.h"
void wave_head_parse(wav_head *wav)
{
    printf("\r\n**************wav head******************\r\n");
    printf("RIFF                 :%.*s\r\n", 4, wav->riff_str);
    printf("file_length          :%ld\r\n", wav->file_length);
    printf("file_format          : %.*s\r\n", 4, wav->file_format);
    printf("fmt_str              : %.*s\r\n", 4, wav->fmt_str);
    printf("fmt_length           :%ld\r\n", wav->fmt_length);
    printf("audio_encode_mode    :%d\r\n", wav->audio_encode_mode);
    printf("audio_channel_num    :%d\r\n", wav->audio_channel_num);
    printf("audio_sample_rate    :%ld\r\n", wav->audio_sample_rate);
    printf("audio_bps            :%ld\r\n", wav->audio_bps);
    printf("audio_byte_per_point :%d\r\n", wav->audio_byte_per_point);
    printf("audio_bit            :%d\r\n", wav->audio_bit);
    printf("data_str             : %.*s\r\n", 4, wav->data_str);
    printf("audio_data_length    :%ld\r\n", wav->audio_data_length);
    printf("****************************************\r\n");
    
}